home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / BUS / A-E / Appoint_Master / AppointmentMaster™ v1.1 / card_3049.txt < prev    next >
Encoding:
Text File  |  1988-04-25  |  33.5 KB  |  928 lines

  1. -- card: 3049 from stack: in.1 
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2621
  5. -- name: ApptSchedule
  6.  
  7.  
  8. -- part 5 (field)
  9. -- low flags: 81
  10. -- high flags: 0004
  11. -- rect: left=140 top=151 right=170 bottom=436
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: firstQtrHour
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   get word 1 of card field id 5
  23.   if it is empty then exit mouseUp
  24.   put it into temp1
  25.   hide card field id 5
  26.   hide card field id 9
  27.   hide card field id 10
  28.   hide card field id 11
  29.   hide card field id 12
  30.   put bkgnd field id 5 into temp2
  31.   visual effect zoom in
  32.   go background id 3622
  33.   find temp2 of bkgnd field id 2
  34.   find temp1 of bkgnd field id 1
  35.   play boing
  36. end mouseUp
  37.  
  38.  
  39.  
  40.  
  41. -- part 9 (field)
  42. -- low flags: 81
  43. -- high flags: 0004
  44. -- rect: left=140 top=170 right=189 bottom=436
  45. -- title width / last selected line: 0
  46. -- icon id / first selected line: 0 / 0
  47. -- text alignment: 0
  48. -- font id: 3
  49. -- text size: 12
  50. -- style flags: 0
  51. -- line height: 16
  52. -- part name: secondQtrHour
  53. ----- HyperTalk script -----
  54. on mouseUp
  55.   get word 1 of card field id 9
  56.   if it is empty then exit mouseUp
  57.   put it into temp1
  58.   hide card field id 5
  59.   hide card field id 9
  60.   hide card field id 10
  61.   hide card field id 11
  62.   hide card field id 12
  63.   put bkgnd field id 5 into temp2
  64.   visual effect zoom in
  65.   go background id 3622
  66.   find temp2 of bkgnd field id 2
  67.   find temp1 of bkgnd field id 1
  68.   play boing
  69. end mouseUp
  70.  
  71.  
  72. -- part 10 (field)
  73. -- low flags: 81
  74. -- high flags: 0004
  75. -- rect: left=140 top=189 right=208 bottom=437
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 0
  79. -- font id: 3
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: thirdQtrHour
  84. ----- HyperTalk script -----
  85. on mouseUp
  86.   get word 1 of card field id 10
  87.   if it is empty then exit mouseUp
  88.   put it into temp1
  89.   hide card field id 5
  90.   hide card field id 9
  91.   hide card field id 10
  92.   hide card field id 11
  93.   hide card field id 12
  94.   put bkgnd field id 5 into temp2
  95.   visual effect zoom in
  96.   go background id 3622
  97.   find temp2 of bkgnd field id 2
  98.   find temp1 of bkgnd field id 1
  99.   play boing
  100. end mouseUp
  101.  
  102.  
  103. -- part 11 (field)
  104. -- low flags: 81
  105. -- high flags: 0004
  106. -- rect: left=141 top=208 right=227 bottom=437
  107. -- title width / last selected line: 0
  108. -- icon id / first selected line: 0 / 0
  109. -- text alignment: 0
  110. -- font id: 3
  111. -- text size: 12
  112. -- style flags: 0
  113. -- line height: 16
  114. -- part name: fourthQtrHour
  115. ----- HyperTalk script -----
  116. on mouseUp
  117.   get word 1 of card field id 11
  118.   if it is empty then exit mouseUp
  119.   put it into temp1
  120.   hide card field id 5
  121.   hide card field id 9
  122.   hide card field id 10
  123.   hide card field id 11
  124.   hide card field id 12
  125.   put bkgnd field id 5 into temp2
  126.   visual effect zoom in
  127.   go background id 3622
  128.   find temp2 of bkgnd field id 2
  129.   find temp1 of bkgnd field id 1
  130.   play boing
  131. end mouseUp
  132.  
  133.  
  134. -- part 12 (field)
  135. -- low flags: 81
  136. -- high flags: 0004
  137. -- rect: left=151 top=46 right=152 bottom=424
  138. -- title width / last selected line: 0
  139. -- icon id / first selected line: 0 / 0
  140. -- text alignment: 1
  141. -- font id: 0
  142. -- text size: 12
  143. -- style flags: 0
  144. -- line height: 16
  145. -- part name: infoField
  146. ----- HyperTalk script -----
  147. on mouseUp
  148.   hide card field id 12
  149.   hide card field id 5
  150.   hide card field id 9
  151.   hide card field id 10
  152.   hide card field id 11
  153.   put "Smile it creates Happiness." into message
  154.   wait 2 seconds
  155.   hide message box
  156.   hide menubar
  157. end mouseUp
  158.  
  159.  
  160. -- part 23 (field)
  161. -- low flags: 80
  162. -- high flags: 0007
  163. -- rect: left=46 top=139 right=236 bottom=500
  164. -- title width / last selected line: 0
  165. -- icon id / first selected line: 0 / 0
  166. -- text alignment: 0
  167. -- font id: 3
  168. -- text size: 9
  169. -- style flags: 0
  170. -- line height: 12
  171. -- part name: 
  172. ----- HyperTalk script -----
  173. stack "AppointmentMaster v1.1 "
  174. on closeStack
  175.   global whosThere
  176.   put "Have Yourself a SUPER GOOD DAY" && whosThere && "!" into message box
  177.   doMenu "Compact Stack"
  178.   RemShow Meo
  179.   show menubar
  180.   hide message box
  181.   visual effect zoom out
  182. end closeStack
  183.  
  184.  
  185.  
  186. on update theDate
  187.   global whosThere
  188.   ask "What is your name, Please?" with field id 26
  189.   put it into field id 26
  190.   put it into whosThere
  191.   put the long date into field id 5 of card id 3049
  192.   theSchedule schedule
  193. end update
  194.  
  195.  
  196.  
  197. on theSchedule schedule
  198.   set cursor to 4
  199.   put empty into field id 6
  200.   put empty into field id 7
  201.   put empty into field id 8
  202.   put empty into field id 9
  203.   put empty into field id 10
  204.   put empty into field id 11
  205.   put empty into field id 12
  206.   put empty into field id 13
  207.   put empty into field id 14
  208.   put empty into field id 15
  209.   put empty into field id 16
  210.   put empty into field id 17
  211.   put empty into field id 30   --field "Links" is a hidden field
  212.   get field id 5
  213.   convert it to seconds
  214.   put it into thisDay
  215.   put 1 into lineNumber
  216.   repeat with x = 2 to (the number of cards)
  217.     get (field id 2 of card x)  --field "Date"
  218.     if it is empty then next repeat
  219.     convert it to seconds
  220.     if it = thisDay then
  221.       put (the id of card x) into line lineNumber of field "Links"
  222.       add 1 to lineNumber
  223.       get field id 47 of card x  --field "My Name"
  224.       if it = field id 26 of card id 3049 then
  225.         get field id 43 of card x  --field "Appointment Time"
  226.         put it into apptTime
  227.         get field id 1 of card x   --field "ClientName"
  228.         put it into temp2
  229.         put the number of chars of temp2 into countChar
  230.         put 37 into maxChar
  231.         subtract countChar from maxChar
  232.         get field id 6 of card x  --field "ApptDetails"
  233.         put it into temp3
  234.         put "," after char maxChar of temp3
  235.         put empty into item 2 of temp3
  236.         put empty into last char of temp3
  237.         get apptTime  --a variable holding the appointment time.
  238.         if it ‚â• 0900 and it ‚â§ 0914 or it ‚â• 900 and it ‚â§ 914 or it = 9 then
  239.           put temp2 && "‚Äî" & temp3 into line 1 of field id 6
  240.         else
  241.           if it ‚â• 0915 and it ‚â§ 0929 or it ‚â• 915 and it ‚â§ 929 then
  242.             put temp2 && "‚Äî" & temp3 into line 2 of field id 6
  243.           else
  244.             if it ‚â• 0930 and it ‚â§ 0944 or it ‚â• 930 and it ‚â§ 944 then
  245.               put temp2 && "‚Äî" & temp3 into line 3 of field id 6
  246.             else
  247.               if it ‚â• 0945 and it ‚â§ 0959 or it ‚â• 945 and it ‚â§ 959 then
  248.                 put temp2 && "‚Äî" & temp3 into line 4 of field id 6
  249.               else
  250.                 if it ‚â• 1000 and it ‚â§ 1014 or it = 10 then
  251.                   put temp2 && "‚Äî" & temp3 into line 1 of field id 7
  252.                 else
  253.                   if it ‚â• 1015 and it ‚â§ 1029 then
  254.                     put temp2 && "‚Äî" & temp3 into line 2 of field id 7
  255.                   else
  256.                     if it ‚â• 1030 and it ‚â§ 1044 then
  257.                       put temp2 && "‚Äî" & temp3 into line 3 of field id 7
  258.                     else
  259.                       if it ‚â• 1045 and it ‚â§ 1059 then
  260.                         put temp2 && "‚Äî" & temp3 into line 4 of field id 7
  261.                       else
  262.                         if it ‚â• 1100 and it ‚â§ 1114 or it = 11 then
  263.                           put temp2 && "‚Äî" & temp3 into line 1 of field id 8
  264.                         else
  265.                           if it ‚â• 1115 and it ‚â§ 1129 then
  266.                             put temp2 && "‚Äî" & temp3 into line 2 of field id 8
  267.                           else
  268.                             if it ‚â• 1130 and it ‚â§ 1144 then
  269.                               put temp2 && "‚Äî" & temp3 into line 3 of field id 8
  270.                             else
  271.                               if it ‚â• 1145 and it ‚â§ 1159 then
  272.                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 8
  273.                               else
  274.                                 if it ‚â• 1200 and it ‚â§ 1214 or it = 12 then
  275.                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 9
  276.                                 else
  277.                                   if it ‚â• 1215 and it ‚â§ 1229 then
  278.                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 9
  279.                                   else
  280.                                     if it ‚â• 1230 and it ‚â§ 1244 then
  281.                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 9
  282.                                     else
  283.                                       if it ‚â• 1245 and it ‚â§ 1259 then
  284.                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 9
  285.                                       else
  286.                                         if it ‚â• 100 and it ‚â§ 114 or it ‚â• 1300 and it ‚â§ 1314 or it = 1 then
  287.                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 10
  288.                                         else
  289.                                           if it ‚â• 115 and it ‚â§ 129 or it ‚â• 1315 and it ‚â§ 1329 then
  290.                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 10
  291.                                           else
  292.                                             if it ‚â• 130 and it ‚â§ 144 or it ‚â• 1330 and it ‚â§ 1344 then
  293.                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 10
  294.                                             else
  295.                                               if it ‚â• 145 and it ‚â§ 159 or it ‚â• 1345 and it ‚â§ 1359 then
  296.                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 10
  297.                                               else
  298.                                                 if it ‚â• 200 and it ‚â§ 214 or it ‚â• 1400 and it ‚â§ 1414 or it = 2 then
  299.                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 11
  300.                                                 else
  301.                                                   if it ‚â• 215 and it ‚â§ 229 or it ‚â• 1415 and it ‚â§ 1429 then
  302.                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 11
  303.                                                   else
  304.                                                     if it ‚â• 230 and it ‚â§ 244 or it ‚â• 1430 and it ‚â§ 1444 then
  305.                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 11
  306.                                                     else
  307.                                                       if it ‚â• 245 and it ‚â§ 259 or it ‚â• 1445 and it ‚â§ 1459 then
  308.                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 11
  309.                                                       else
  310.                                                         if it ‚â• 300 and it ‚â§ 314 or it ‚â• 1500 and it ‚â§ 1514 or it = 3 then
  311.                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 12
  312.                                                         else
  313.                                                           if it ‚â• 315 and it ‚â§ 329 or it ‚â• 1515 and it ‚â§ 1529 then
  314.                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 12
  315.                                                           else
  316.                                                             if it ‚â• 330 and it ‚â§ 344 or it ‚â• 1530 and it ‚â§ 1544 then
  317.                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 12
  318.                                                             else
  319.                                                               if it ‚â• 345 and it ‚â§ 359 or it ‚â• 1545 and it ‚â§ 1559 then
  320.                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 12
  321.                                                               else
  322.                                                                 if it ‚â• 400 and it ‚â§ 414 or it ‚â• 1600 and it ‚â§ 1614 or it = 4 then
  323.                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 13
  324.                                                                 else
  325.                                                                   if it ‚â• 415 and it ‚â§ 429 or it ‚â• 1615 and it ‚â§ 1629 then
  326.                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  327.                                                                   else
  328.                                                                     if it ‚â• 430 and it ‚â§ 444 or it ‚â• 1630 and it ‚â§ 1644 then
  329.                                                                       put temp2 && "‚Äî" & temp3 into line 2 of field id 13
  330.                                                                     else
  331.                                                                       if it ‚â• 445 and it ‚â§ 459 or it ‚â• 1645 and it ‚â§ 1659 then
  332.                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 13
  333.                                                                       else
  334.                                                                         if it ‚â• 500 and it ‚â§ 514 or it ‚â• 1700 and it ‚â§ 1714 or it = 5 then
  335.                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 14
  336.                                                                         else
  337.                                                                           if it ‚â• 515 and it ‚â§ 529 or it ‚â• 1715 and it ‚â§ 1729 then
  338.                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 14
  339.                                                                           else
  340.                                                                             if it ‚â• 530 and it ‚â§ 544 or it ‚â• 1730 and it ‚â§ 1744 then
  341.                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 14
  342.                                                                             else
  343.                                                                               if it ‚â• 545 and it ‚â§ 559 or it ‚â• 1745 and it ‚â§ 1759 then
  344.                                                                                 put temp2 && "‚Äî" & temp3 into line 4 of field id 14
  345.                                                                               else
  346.                                                                                 if it ‚â• 600 and it ‚â§ 614 or it ‚â• 1800 and it ‚â§ 1814 or it = 6 then
  347.                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 15
  348.                                                                                 else
  349.                                                                                   if it ‚â• 615 and it ‚â§ 629 or it ‚â• 1815 and it ‚â§ 1829 then
  350.                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 15
  351.                                                                                   else
  352.                                                                                     if it ‚â• 630 and it ‚â§ 644 or it ‚â• 1830 and it ‚â§ 1844 then
  353.                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 15
  354.                                                                                     else
  355.                                                                                       if it ‚â• 645 and it ‚â§ 659 or it ‚â• 1845 and it ‚â§ 1859 then
  356.                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 15
  357.                                                                                       else
  358.                                                                                         if it ‚â• 700 and it ‚â§ 714 or it ‚â• 1900 and it ‚â§ 1914 or it = 7 then
  359.                                                                                           put temp2 && "‚Äî" & temp3 into line 1 of field id 16
  360.                                                                                         else
  361.                                                                                           if it ‚â• 715 and it ‚â§ 729 or it ‚â• 1915 and it ‚â§ 1929 then
  362.                                                                                             put temp2 && "‚Äî" & temp3 into line 2 of field id 16
  363.                                                                                           else
  364.                                                                                             if it ‚â• 730 and it ‚â§ 744 or it ‚â• 1930 and it ‚â§ 1944 then
  365.                                                                                               put temp2 && "‚Äî" & temp3 into line 3 of field id 16
  366.                                                                                             else
  367.                                                                                               if it ‚â• 745 and it ‚â§ 759 or it ‚â• 1945 and it ‚â§ 1959 then
  368.                                                                                                 put temp2 &&"‚Äî" & temp3 into line 4 of field id 16
  369.                                                                                               else
  370.                                                                                                 if it ‚â• 800 and it ‚â§ 814 or it ‚â• 2000 and it ‚â§ 2014 or it = 8 then
  371.                                                                                                   put temp2 && "‚Äî" & temp3 into line 1 of field id 17
  372.                                                                                                 else
  373.                                                                                                   if it ‚â• 815 and it ‚â§ 829 or it ‚â• 2015 and it ‚â§ 2029 then
  374.                                                                                                     put temp2 && "‚Äî" & temp3 into line 2 of field id 17
  375.                                                                                                   else
  376.                                                                                                     if it ‚â• 830 and it ‚â§ 844 or it ‚â• 2030 and it ‚â§ 2044 then
  377.                                                                                                       put temp2 && "‚Äî" & temp3 into line 3 of field id 17
  378.                                                                                                     else
  379.                                                                                                       if it ‚â• 845 and it ‚â§ 859 or it ‚â• 2045 and it ‚â§ 2059 then
  380.                                                                                                         put temp2 && "‚Äî" & temp3 into line 4 of field id 17
  381.                                                                                                       end if
  382.                                                                                                     end if
  383.                                                                                                   end if
  384.                                                                                                 end if
  385.                                                                                               end if
  386.                                                                                             end if
  387.                                                                                           end if
  388.                                                                                         end if
  389.                                                                                       end if
  390.                                                                                     end if
  391.                                                                                   end if
  392.                                                                                 end if
  393.                                                                               end if
  394.                                                                             end if
  395.                                                                           end if
  396.                                                                         end if
  397.                                                                       end if
  398.                                                                     end if
  399.                                                                   end if
  400.                                                                 end if
  401.                                                               end if
  402.                                                             end if
  403.                                                           end if
  404.                                                         end if
  405.                                                       end if
  406.                                                     end if
  407.                                                   end if
  408.                                                 end if
  409.                                               end if
  410.                                             end if
  411.                                           end if
  412.                                         end if
  413.                                       end if
  414.                                     end if
  415.                                   end if
  416.                                 end if
  417.                               end if
  418.                             end if
  419.                           end if
  420.                         end if
  421.                       end if
  422.                     end if
  423.                   end if
  424.                 end if
  425.               end if
  426.             end if
  427.           end if
  428.         end if
  429.       end if
  430.     end if
  431.   end repeat
  432. end theSchedule
  433.  
  434.  
  435.  
  436. on RemShow Meo
  437.   get the date
  438.   convert it to dateItems
  439.   if item 3 of it = 1 or item 3 of it =15 then
  440.     beep 2
  441.     put "Paid your SHAREWARE FEE yet ? If So‚ÄîTHANKS! If No ‚Äî PLEASE DO"
  442.     wait 5 seconds
  443.     play boing
  444.     hide message box
  445.   end if
  446. end RemShow
  447.  
  448.  
  449.  
  450. on openStack
  451.   visual zoom in
  452.   hide menubar
  453.   hide message box
  454.   show field id 25  --Copyright field-DO NOT REMOVE
  455.   put the long date into field id 2 of card id 2289
  456.   update theDate
  457.   RemShow Meo
  458. end openStack
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465. bkgnd "Schedule"
  466. on closeStack
  467.   global whosThere
  468.   put field id 26 into whosThere
  469.   pass closeStack
  470. end closeStack
  471.  
  472. card "ApptSchedule"
  473. --no script
  474. bkgnd field "Date"
  475.  
  476.  
  477.  
  478. bkgnd field "Nine"
  479. on mouseUp
  480.   show card field id 5
  481.   show card field id 9
  482.   show card field id 10
  483.   show card field id 11
  484.   show card field id 12
  485.   put line 1 of field id 6 into card field id 5
  486.   put line 2 of field id 6 into card field id 9
  487.   put line 3 of field id 6 into card field id 10
  488.   put line 4 of field id 6 into card field id 11
  489. end mouseUp
  490.  
  491.  
  492. bkgnd field "ten"
  493. on mouseUp
  494.   show card field id 5
  495.   show card field id 9
  496.   show card field id 10
  497.   show card field id 11
  498.   show card field id 12
  499.   put line 1 of field id 7 into card field id 5
  500.   put line 2 of field id 7 into card field id 9
  501.   put line 3 of field id 7 into card field id 10
  502.   put line 4 of field id 7 into card field id 11
  503. end mouseUp
  504.  
  505. bkgnd field "eleven"
  506. on mouseUp
  507.   show card field id 5
  508.   show card field id 9
  509.   show card field id 10
  510.   show card field id 11
  511.   show card field id 12
  512.   put line 1 of field id 8 into card field id 5
  513.   put line 2 of field id 8 into card field id 9
  514.   put line 3 of field id 8 into card field id 10
  515.   put line 4 of field id 8 into card field id 11
  516. end mouseUp
  517.  
  518. bkgnd field "twelve"
  519. on mouseUp
  520.   show card field id 5
  521.   show card field id 9
  522.   show card field id 10
  523.   show card field id 11
  524.   show card field id 12
  525.   put line 1 of field id 9 into card field id 5
  526.   put line 2 of field id 9 into card field id 9
  527.   put line 3 of field id 9 into card field id 10
  528.   put line 4 of field id 9 into card field id 11
  529. end mouseUp
  530.  
  531. bkgnd field "one"
  532. on mouseUp
  533.   show card field id 5
  534.   show card field id 9
  535.   show card field id 10
  536.   show card field id 11
  537.   show card field id 12
  538.   put line 1 of field id 10 into card field id 5
  539.   put line 2 of field id 10 into card field id 9
  540.   put line 3 of field id 10 into card field id 10
  541.   put line 4 of field id 10 into card field id 11
  542. end mouseUp
  543.  
  544. bkgnd field "two"
  545. on mouseUp
  546.   show card field id 5
  547.   show card field id 9
  548.   show card field id 10
  549.   show card field id 11
  550.   show card field id 12
  551.   put line 1 of field id 11 into card field id 5
  552.   put line 2 of field id 11 into card field id 9
  553.   put line 3 of field id 11 into card field id 10
  554.   put line 4 of field id 11 into card field id 11
  555. end mouseUp
  556.  
  557.  
  558. bkgnd field "three"
  559. on mouseUp
  560.   show card field id 5
  561.   show card field id 9
  562.   show card field id 10
  563.   show card field id 11
  564.   show card field id 12
  565.   put line 1 of field id 12 into card field id 5
  566.   put line 2 of field id 12 into card field id 9
  567.   put line 3 of field id 12 into card field id 10
  568.   put line 4 of field id 12 into card field id 11
  569. end mouseUp
  570.  
  571. bkgnd field "four"
  572. on mouseUp
  573.   show card field id 5
  574.   show card field id 9
  575.   show card field id 10
  576.   show card field id 11
  577.   show card field id 12
  578.   put line 1 of field id 13 into card field id 5
  579.   put line 2 of field id 13 into card field id 9
  580.   put line 3 of field id 13 into card field id 10
  581.   put line 4 of field id 13 into card field id 11
  582. end mouseUp
  583.  
  584. bkgnd field "five"
  585. on mouseUp
  586.   show card field id 5
  587.   show card field id 9
  588.   show card field id 10
  589.   show card field id 11
  590.   show card field id 12
  591.   put line 1 of field id 14 into card field id 5
  592.   put line 2 of field id 14 into card field id 9
  593.   put line 3 of field id 14 into card field id 10
  594.   put line 4 of field id 14 into card field id 11
  595. end mouseUp
  596.  
  597. bkgnd field "six"
  598. on mouseUp
  599.   show card field id 5
  600.   show card field id 9
  601.   show card field id 10
  602.   show card field id 11
  603.   show card field id 12
  604.   put line 1 of field id 15 into card field id 5
  605.   put line 2 of field id 15 into card field id 9
  606.   put line 3 of field id 15 into card field id 10
  607.   put line 4 of field id 15 into card field id 11
  608. end mouseUp
  609.  
  610. bkgnd field "seven"
  611. on mouseUp
  612.   show card field id 5
  613.   show card field id 9
  614.   show card field id 10
  615.   show card field id 11
  616.   show card field id 12
  617.   put line 1 of field id 16 into card field id 5
  618.   put line 2 of field id 16 into card field id 9
  619.   put line 3 of field id 16 into card field id 10
  620.   put line 4 of field id 16 into card field id 11
  621. end mouseUp
  622.  
  623. bkgnd field "eight"
  624. on mouseUp
  625.   show card field id 5
  626.   show card field id 9
  627.   show card field id 10
  628.   show card field id 11
  629.   show card field id 12
  630.   put line 1 of field id 17 into card field id 5
  631.   put line 2 of field id 17 into card field id 9
  632.   put line 3 of field id 17 into card field id 10
  633.   put line 4 of field id 17 into card field id 11
  634. end mouseUp
  635.  
  636. bkgnd field "Your Name"
  637. --no script
  638.  
  639. bkgnd field "Links"
  640. on mouseUp
  641.   hide bkgnd field id 30
  642. end mouseUp
  643.  
  644. bkgnd field "¬©Copyright"
  645. on mouseUp
  646.   hide field id 25
  647. end mouseUp
  648.  
  649.  
  650.  
  651.  
  652. bkgnd button "Yesterday"
  653. on mouseUp
  654.   visual effect wipe left
  655.   get field id 5
  656.   put it into today
  657.   convert today to seconds
  658.   put (60*60*24) into oneDay
  659.   subtract oneDay from today
  660.   put today into field id 5
  661.   convert field id 5 to long date
  662.   theSchedule schedule
  663. end mouseUp
  664.  
  665.  
  666.  
  667.  
  668. bkgnd button "Tomorrow"
  669. on mouseUp
  670.   visual effect wipe right
  671.   get field id 5
  672.   put it into today
  673.   convert today to seconds
  674.   put (60*60*24) into oneDay
  675.   add oneDay to today
  676.   put today into field id 5
  677.   convert field id 5 to long date
  678.   theSchedule update
  679. end mouseUp
  680.  
  681.  
  682.  
  683.  
  684. bkgnd button "Home"
  685. on mouseUp
  686.   show menubar
  687.   visual effect iris close
  688.   go Home
  689. end mouseUp
  690.  
  691.  
  692.  
  693. bkgnd button "New Appointment Card"
  694. on mouseUp
  695.   visual iris open
  696.   go next background
  697.   doMenu "new Card"
  698. end mouseUp
  699.  
  700.  
  701.  
  702.  
  703. bkgnd button "My Appointment Book"
  704. on mouseUp
  705.   get the date
  706.   put it into temp
  707.   ask "Schedule for Which Day?" with temp
  708.   put it into field id 5
  709.   put it into apptDay
  710.   convert apptDay to seconds
  711.   convert field id 5 to long date
  712.   ask "What is your name, Please?"  with field id 26 --field "Your Name"
  713.   put it into field id 26
  714.   theSchedule schedule
  715. end mouseUp
  716.  
  717.  
  718.  
  719.  
  720. bkgnd button "Printer"
  721. on mouseUp
  722.   answer "What do you wish to print?" with "Cancel" or "Print Card" or "Print All"
  723.   if it is "Cancel" then
  724.     exit mouseUp
  725.   else
  726.     if it is "Print Card" then
  727.       doMenu "Print Card"
  728.       exit mouseUp
  729.     else
  730.       if it is "Print All" then
  731.         doMenu "Print Card"
  732.         set lockscreen to true
  733.         push card
  734.         go line 1 of field id 30
  735.         send mouseUp to bkgnd button id 57  --"Closer Look"
  736.         doMenu "Print Card"
  737.         send mouseUp to bkgnd button id 54
  738.         pop card
  739.         set lockScreen to false
  740.         open printing with dialog
  741.         repeat with x = 1 to the number of lines of field id 30
  742.           get line x of field id 30
  743.           if it is empty then
  744.             close printing
  745.             exit mouseUp
  746.           else
  747.             if it is not empty then
  748.               set lockScreen to true
  749.               go it
  750.               hide bkgnd field id 50
  751.               hide bkgnd field id 51
  752.               hide bkgnd field id 53
  753.               hide bkgnd button id 54
  754.               hide bkgnd button id 63
  755.               show bkgnd button id 57   --"Closer Look"
  756.               print this card
  757.               go card id 3049
  758.             end if
  759.           end if
  760.         end repeat
  761.       end if
  762.     end if
  763.   end if
  764.   close printing
  765.   set lockScreen to false
  766. end mouseUp
  767.  
  768.  
  769. card field "firstQtrHour"
  770. on mouseUp
  771.   get word 1 of card field id 5
  772.   if it is empty then exit mouseUp
  773.   put it into temp1
  774.   hide card field id 5
  775.   hide card field id 9
  776.   hide card field id 10
  777.   hide card field id 11
  778.   hide card field id 12
  779.   put bkgnd field id 5 into temp2
  780.   visual effect zoom in
  781.   go background id 3622
  782.   find temp2 of bkgnd field id 2
  783.   find temp1 of bkgnd field id 1
  784.   play boing
  785. end mouseUp
  786.  
  787.  
  788.  
  789.  
  790. card field "secondQtrHour"
  791. on mouseUp
  792.   get word 1 of card field id 9
  793.   if it is empty then exit mouseUp
  794.   put it into temp1
  795.   hide card field id 5
  796.   hide card field id 9
  797.   hide card field id 10
  798.   hide card field id 11
  799.   hide card field id 12
  800.   put bkgnd field id 5 into temp2
  801.   visual effect zoom in
  802.   go background id 3622
  803.   find temp2 of bkgnd field id 2
  804.   find temp1 of bkgnd field id 1
  805.   play boing
  806. end mouseUp
  807.  
  808.  
  809. card field "thirdQtrHour"
  810. on mouseUp
  811.   get word 1 of card field id 10
  812.   if it is empty then exit mouseUp
  813.   put it into temp1
  814.   hide card field id 5
  815.   hide card field id 9
  816.   hide card field id 10
  817.   hide card field id 11
  818.   hide card field id 12
  819.   put bkgnd field id 5 into temp2
  820.   visual effect zoom in
  821.   go background id 3622
  822.   find temp2 of bkgnd field id 2
  823.   find temp1 of bkgnd field id 1
  824.   play boing
  825. end mouseUp
  826.  
  827.  
  828. card field "fourthQtrHour"
  829. on mouseUp
  830.   get word 1 of card field id 11
  831.   if it is empty then exit mouseUp
  832.   put it into temp1
  833.   hide card field id 5
  834.   hide card field id 9
  835.   hide card field id 10
  836.   hide card field id 11
  837.   hide card field id 12
  838.   put bkgnd field id 5 into temp2
  839.   visual effect zoom in
  840.   go background id 3622
  841.   find temp2 of bkgnd field id 2
  842.   find temp1 of bkgnd field id 1
  843.   play boing
  844. end mouseUp
  845.  
  846.  
  847. card field "infoField"
  848. on mouseUp
  849.   hide card field id 12
  850.   hide card field id 5
  851.   hide card field id 9
  852.   hide card field id 10
  853.   hide card field id 11
  854.   put "Smile it creates Happiness." into message
  855.   wait 2 seconds
  856.   hide message box
  857.   hide menubar
  858. end mouseUp
  859.  
  860. This is the end of the scripts for card #1
  861.  
  862.  
  863.  
  864. -- part contents for background part 25
  865. ----- text -----
  866.  
  867. AppointmentMaster ver. 1.1 ¬©1988
  868. by James Carl Casebier, Jr.
  869. 105 Center Street ‚ÄîBox 172 
  870. Hartford, Kentucky 42347, USA
  871.  
  872. All rights reserved
  873. ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  874. This HyperCard‚Ñ¢ Stack is ShareWare
  875. Try it out. If you like it and want to use it
  876. Please send $15.00 to the author at the above address.....
  877.  
  878. >>>Otherwise please trash the stack and  Honor Shareware Fees.<<< 
  879. –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  880. Documentation & the latest version of AppointmentMaster‚Ñ¢ will be sent to you upon reciept of your payment.  Registered users will be notified of future updates and other new programs and applications as they develop
  881. from U‚ÄîCompute‚Äîit‚Ñ¢
  882.  
  883. HyperCard‚Ñ¢ is a trademark of Apple Computer, Inc.
  884. AppointmentMaster‚Ñ¢ v1.1¬©1988 is the property  of U‚ÄîCompute‚ÄîIt‚Ñ¢
  885.  
  886.  
  887.  
  888.  
  889. -- part contents for card part 12
  890. ----- text -----
  891. ****Info—Field****
  892. ‚ÄîClick Here to cancel‚Äî
  893.  
  894. Click below
  895. on the appointment
  896. you wish to modify
  897.  
  898.  
  899. -- part contents for background part 5
  900. ----- text -----
  901. Tuesday, March 1, 1988
  902.  
  903. -- part contents for background part 26
  904. ----- text -----
  905. Your Name Here
  906.  
  907. -- part contents for card part 23
  908. ----- text -----
  909. To see and print the scripts of the stack and of card #1 ‚Äîopen the script of this field:
  910. (1) Select the field tool from the tools menu.  If the menubar is not visible type command
  911.       and the spacebar to make it visible.
  912. (2) Hold down the shift key while  double clicking on this field.
  913. (3) To print click on the print button.   There are 12 pages.
  914.  
  915. THIS IS CARD FIELD ID 23
  916.  
  917.  
  918. -- part contents for card part 5
  919. ----- text -----
  920. Your ‚ÄîIntroduction to AppointmentMaster
  921.  
  922. -- part contents for background part 30
  923. ----- text -----
  924. card id 2289
  925.  
  926. -- part contents for background part 6
  927. ----- text -----
  928. Your ‚ÄîIntroduction to AppointmentMaster